
document.addEventListener("DOMContentLoaded", () => {
    const storeTab = document.getElementById("store-tab");
    const productTab = document.getElementById("product-tab");
    const storeContent = document.getElementById("store-content");
    const productContent = document.getElementById("product-content");

    // Event listener for "店铺" tab
    storeTab.addEventListener("click", () => {
        storeTab.classList.add("active");
        productTab.classList.remove("active");
        storeContent.classList.remove("hidden");
        productContent.classList.add("hidden");
    });

    // Event listener for "商品" tab
    productTab.addEventListener("click", () => {
        productTab.classList.add("active");
        storeTab.classList.remove("active");
        productContent.classList.remove("hidden");
        storeContent.classList.add("hidden");
    });
});
